home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / c01oop.zip / CPPWKBK / CPPV1-6.CPP < prev    next >
C/C++ Source or Header  |  1992-08-25  |  241b  |  16 lines

  1. #define HEADER "C++ Problem 1.6 by Rick Conn using Borland C++"
  2.  
  3. #include <stdio.h>
  4.  
  5. void print(int value = 1) {
  6.   printf("The value is %2d\n", value);
  7. }
  8.  
  9. void main(void)
  10. {
  11.   printf("%s\n", HEADER);
  12.  
  13.   print();
  14.   print(20);
  15. }
  16.